package com.zjw.zy.service.contract;

import com.zjw.zy.bean.HourlyWeather;
import com.zjw.zy.bean.Weather15Day;
import com.zjw.zy.bean.Weather1Day;
import com.zjw.zy.constant.AppConstant;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.Query;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/9/27 16:02
 */
public interface IWeatherService {


    @GET("/weather/days")
    Call<Weather15Day> getWeather(@Query("days") int days, @Query("areaCode") long areaCode);


    @GET("/weather/hours")
    Call<Weather1Day> getHourWeather(@Query("hours") int hour, @Query("areaCode") int areaCode);
}
